package org.exes;

public class TryCatchFinally {

    public static void main(String[] args) {
        System.out.println("Inicio");
        try {
            System.out.println("try1");
            if(true) throw new RuntimeException("Un error!!!");
            System.out.println("try2");
        } 
        catch(RuntimeException re){
            System.out.println("RuntimeException");
        }
        catch(Exception e){
            System.out.println("Exception");
        }
        catch(Throwable t){
            System.out.println("Throwable");
        }        
        finally {
            System.out.println("finally");
        }
    }
}
